//package org.wlgzs.shop.utils.file;
//
//
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.multipart.MultipartFile;
//import org.springframework.web.multipart.MultipartHttpServletRequest;
//import org.springframework.web.multipart.commons.CommonsMultipartResolver;
//import org.springframework.web.servlet.ModelAndView;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.File;
//import java.util.Iterator;
//import java.util.UUID;
//
///**
// * @Author: Ben
// * @Date: 2019/5/24 17:45
// * @Project org.wlgzs.shop
// */
//@Controller
//public class FileController {
//
//    /**
//     * 上传文件，一次一张
//     */
//    @RequestMapping("/oneFileUpload")
//    public ModelAndView oneFileUpload(HttpServletRequest request,
//                                 HttpServletResponse response) throws Exception {
//        CommonsMultipartResolver commonsMultipartResolver = new CommonsMultipartResolver(
//                request.getSession().getServletContext());
//        ModelAndView modelAndView=new ModelAndView();
//       modelAndView=FileUtils.oneFileUploadService(request,response,commonsMultipartResolver,modelAndView);
//        modelAndView.setViewName("");
//        return modelAndView;
//    }
//}
